import { Model } from "../../../packages/index";
import { Column } from "../../../types/index";
const columns: Column[] = [
  {
    name: "id",
    unique: true,
    increment: true,
  },
  {
    name: "userName",
    comment: "用户名",
  },
  {
    name: "password",
    comment: "密码",
  },
];
export default class User extends Model {
  _table: string = "user";
  columns: Column[] = columns;
  static instance: User = null;
  constructor() {
    super();
    if (User.instance) {
      return User.instance;
    }
    User.instance = this;
  }
}
